<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">
    <title>预发布</title>
    <style type="text/css" media="screen">
        html,
        body {
            width: 100%;
            height: 100%;
            overflow-y: hidden;
            color: #574751;
            background: #f1f2f7;
            font-size: 16px;
            margin: 0;
        }

        #old,
        #new {
            height: 100%;
            width: 100%;
        }

        #new {
            background-color: #fff;
        }

        #header {
            height: 74px;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            background: #fff;
            font-size: 16px;
            box-sizing: border-box;
            z-index: 1;
        }

        #nav-left {
            height: 100%;
            width: 244px;
            background: #32323a;
            border: solid 1px #1e1e21;
            position: fixed;
            top: 0;
            left: 0;
            box-sizing: border-box;
            z-index: 2;
            overflow-y: auto;
            /* -webkit-overflow-scrolling: touch; */
            transition: all 0.3s ease;
        }

        #nav-left::-webkit-scrollbar {
            width: 0;
        }

        #container {
            margin-top: 74px;
            margin-left: 246px;
            border: solid 18px #f1f2f7;
            padding: 0 20px 20px;
            width: auto;
            box-sizing: border-box;
            background: #fff;
            transition: all 0.3s ease;
            height: 100%;
            padding: 0;
        }

        #container>div {
            overflow-y: hidden;
            height: calc(100% - 60px);
        }

        iframe {
            width: 100%;
            border: none;
        }

        .title {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-left: 244px;
            font-size: 36px;
            color: red;
        }

        .title img {
            width: 50px;
            margin-right: 20px;
        }

        .title .new-btn {
            font-size: 18px;
            border: 1px solid;
            color: #ff9a00;
            padding: 2px 15px;
            border-radius: 100px;
            margin-left: 30px;
            cursor: pointer;
        }

        .left-btn {
            min-height: 60px;
            width: 100%;
            border-bottom: solid 1px #3c3c43;
            font-size: 16px;
            box-sizing: border-box;
            cursor: pointer;
            position: relative;
            white-space: nowrap;
            color: #fff;
        }

        .left-btn a {
            display: inline-block;
            padding-left: 16px;
            width: 100%;
            height: 60px;
            line-height: 60px;
            box-sizing: border-box;
        }

        #limit_iframe {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
        }

        .new-title {
            height: 74px;
            border-bottom: 1px solid #edeef3;
            padding-left: 0;
            position: relative;
            z-index: 100;
        }

        .new-content {
            height: calc(100% - 75px);
            display: flex;
        }

        .left-bar {
            border-right: 1px solid #edeef3;
            width: 139px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .left-bar .main-color:hover {
            color: #FF9A00;
        }

        .el-menu-item {
            height: 60px;
            line-height: 60px;
            font-size: 14px;
            color: #48576a;
            padding: 0 20px 0 25px;
            cursor: pointer;
            position: relative;
            transition: border-color .3s, background-color .3s, color .3s;
            box-sizing: border-box;
            white-space: nowrap;
        }

        .d-flex {
            display: flex;
        }

        .align-items-center {
            align-items: center;
        }

        .mr-10 {
            margin-right: 10px;
        }

        .nav-current {
            color: #FF9A00;
            position: relative;
        }

        .nav-current::after {
            position: absolute;
            left: 0%;
            top: 21px;
            content: "";
            width: 2px;
            height: 18px;
            background: #FF9A00;
        }

        .iframe-content {
            flex: 1;
            width: 0;
            height: 100%;
        }

        .nav-seperate {
            height: 12px;
            position: relative;
        }

        .nav-seperate::after {
            content: "";
            position: absolute;
            left: 25px;
            top: 5px;
            width: 90px;
            height: 1px;
            background: #edeef3;
        }
    </style>
    <style>
        #decrypt {
            margin: 0;
            padding: 40px;
            position: fixed;
            top: 92px;
            background: #fff;
            width: calc(100% - 360px);
            display: none;
        }

        .div_item {
            display: inline-block;
            width: 400px;
        }

        .div_item input,
        .div_item textarea {
            width: 90%;
            font-size: 14px;
            line-height: 24px;
            padding: 0 5px;
        }

        .div_item input {}

        .div_item textarea {
            height: 40px;
            margin-top: 20px;
        }

        .btn {
            font-size: 12px;
            background: #51a1e6;
            border-radius: 5px;
            color: #fff;
            width: 60px;
            text-align: center;
            height: 32px;
            line-height: 32px;
            cursor: pointer;
        }

        .btn:hover {
            background: #6fbcff;
        }

        #erp-container {
            /* height: calc(100% - 60px); */
        }

        #erp-container.fullscreen {
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            right: 0;
            z-index: 0;
            background: transparent;
            position: fixed;
        }

        #login {
            position: fixed;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            display: none;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 100;
        }

        #login .form {
            margin: 100px auto;
            padding: 40px;
            background: #fff;
            width: 400px;
            height: 400px;
        }

        .form .input-item {
            display: inline-block;
            width: 400px;
        }

        .form .input-item input {
            width: 100%;
            font-size: 14px;
            line-height: 24px;
            padding: 10px;
            box-sizing: border-box;
        }

        #login .btn-wrap {
            display: flex;
            justify-content: flex-end;
            margin-top: 50px;
        }

        .btn-wrap .btn {
            margin-left: 20px;
            background-color: #FF9A00;
        }

        .btn-wrap .btn:hover {
            background: rgba(255, 155, 0, 0.8);
        }

        #user,
        #user1 {
            font-size: 16px;
            color: #000;
            margin-left: 30px;
            font-weight: 600;
        }
    </style>
    <style type="text/css">
        @font-face {
            font-family: "element-icons";
            src: url('chrome-extension://moombeodfomdpjnpocobemoiaemednkg/fonts/element-icons.woff') format('woff'),
                url('chrome-extension://moombeodfomdpjnpocobemoiaemednkg/fonts/element-icons.ttf ') format('truetype');
            /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
        }
    </style>
</head>

<body>
    <div id="new">
        <div class="title new-title">
            <img src="./header.gif" alt=""> 预发布环境
            <div class="new-btn" onclick="openOld()">看旧版</div>
            <div class="new-btn" onclick="openLogin()">切换账号</div>
            <div id="user">总管理员</div>
        </div>
        <div class="new-content">
            <div class="left-bar">
                <div class="d-flex h-100 ">
                    <div class="d-flex-column w-140px border-right-grey main-border-color border-box">
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/首页</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-3备份">
                                            <rect id="矩形" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-24" transform="translate(1.750000, 1.312500)" fill="#303133"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M4.46093791,0.112450093 L0.419424713,3.29667261 C-0.0980118413,3.7043499 -0.4,4.32673746 -0.4,4.98547971 L-0.4,10.5 C-0.4,11.2041631 0.170836944,11.775 0.875,11.775 L9.625,11.775 C10.3291631,11.775 10.9,11.2041631 10.9,10.5 L10.9,4.98547971 C10.9,4.32673746 10.5980118,3.7043499 10.0805753,3.29667261 L6.03906209,0.112450093 C5.57621912,-0.252214064 4.92378088,-0.252214064 4.46093791,0.112450093 Z M5.54396431,0.740843431 L9.58547751,3.92506595 C9.91037953,4.18104936 10.1,4.57185085 10.1,4.98547971 L10.1,10.5 C10.1,10.7623353 9.88733526,10.975 9.625,10.975 L0.875,10.975 C0.612664744,10.975 0.4,10.7623353 0.4,10.5 L0.4,4.98547971 C0.4,4.57185085 0.589620472,4.18104936 0.914522494,3.92506595 L4.95603569,0.740843431 C5.12846739,0.604988157 5.37153261,0.604988157 5.54396431,0.740843431 Z"
                                                    id="路径"></path>
                                                <polygon id="直线" points="7.4 8.35 7.4 9.15 3.1 9.15 3.1 8.35"></polygon>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">首页</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/数据</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-4备份">
                                            <rect id="矩形备份-29" x="0" y="0" width="14" height="14"></rect>
                                            <path
                                                d="M5.9021615,1.17757342 C6.12109137,1.13627041 6.32545815,1.28093542 6.3681663,1.48962621 L6.37631681,1.5706483 L6.376,7.207 L9.89339362,11.6068514 C10.0149384,11.7588975 10.0058919,11.9677327 9.89197782,12.1084735 L9.83681204,12.1642579 L9.76925529,12.2095197 C8.92375698,12.6606561 7.97865676,12.9 7,12.9 C3.74131917,12.9 1.1,10.2527581 1.1,6.98766704 C1.1,4.13252822 3.13404464,1.6998025 5.9021615,1.17757342 Z M5.576,2.077 L5.39546113,2.13311262 C3.34459697,2.81254379 1.9,4.75006306 1.9,6.98766704 C1.9,9.81133089 4.18354859,12.1 7,12.1 C7.56431366,12.1 8.11502791,12.0081701 8.63585733,11.831491 L8.89370625,11.736113 L8.952,11.71 L5.66375058,7.59700539 C5.63540851,7.56155093 5.61351799,7.52180333 5.59871323,7.47957174 L5.5818997,7.4145875 L5.57619048,7.34723412 L5.576,2.077 Z M8.0978385,1.17757342 L8.33327761,1.22697997 C10.980526,1.83916022 12.9,4.21410362 12.9,6.98766704 C12.9,8.41777087 12.3910301,9.77014695 11.4810341,10.8338556 C11.3359653,11.0034288 11.0855346,11.0183359 10.921615,10.8817986 L10.8645751,10.8235044 L7.71049119,6.87567627 C7.66800321,6.82249594 7.64002651,6.75966448 7.62869883,6.69328376 L7.623,6.62594594 L7.6236832,1.5705855 C7.6237133,1.34781632 7.80374662,1.17384313 8.01671765,1.17056381 L8.0978385,1.17757342 Z M8.423,2.077 L8.422,6.485 L11.172,9.927 L11.1889377,9.90479469 C11.6740317,9.20657266 11.9788124,8.39697286 12.0706296,7.53932463 L12.093303,7.25174918 L12.1,6.98766704 C12.1,4.82722181 10.7533127,2.94652262 8.81450019,2.20784715 L8.60453887,2.13311262 L8.423,2.077 Z"
                                                id="形状结合" fill="#303133" fill-rule="nonzero"></path>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">数据</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/订单</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-5备份">
                                            <rect id="矩形备份-30" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-2" transform="translate(1.000000, 1.000000)" fill="#303133"
                                                fill-rule="nonzero">
                                                <g id="编组-25">
                                                    <path
                                                        d="M8.77272727,0 C9.35011587,0 9.81818182,0.468065943 9.81818182,1.04545455 L9.81818182,11 L10.9090909,11 L10.9090909,1 L10.9545455,1 C11.5319341,1 12,1.46806594 12,2.04545455 L12,10.9545455 C12,11.5319341 11.5319341,12 10.9545455,12 L1.04545455,12 C0.468065943,12 0,11.5319341 0,10.9545455 L0,1.04545455 C0,0.468065943 0.468065943,0 1.04545455,0 L8.77272727,0 Z M8.77272727,0.88 L1.04545455,0.88 C0.972352128,0.88 0.910322669,0.927408975 0.888434983,0.993158112 L0.88,1.04545455 L0.88,10.9545455 C0.88,11.0276479 0.927408975,11.0896773 0.993158112,11.111565 L1.04545455,11.12 L8.938,11.12 L8.93818182,1.04545455 C8.93818182,0.972352128 8.89077284,0.910322669 8.82502371,0.888434983 L8.77272727,0.88 Z"
                                                        id="矩形"></path>
                                                    <polygon id="直线-2"
                                                        points="6.94545455 2.6 6.94545455 3.4 2.87272727 3.4 2.87272727 2.6">
                                                    </polygon>
                                                </g>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">订单</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/商品</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-6备份">
                                            <rect id="矩形备份-31" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-29" transform="translate(1.750000, 1.312500)" fill="#303133"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M9.2205069,-0.4 L1.2794931,-0.4 C0.594396012,-0.4 0.0317655266,0.141406844 0.00543510637,0.825997769 L-0.365625314,10.492312 C-0.365625314,11.2041631 0.20513774,11.775 0.909300796,11.775 L9.63970143,11.774058 C10.3433442,11.7469948 10.8918204,11.1546406 10.8647572,10.4509978 L10.4945649,0.825997769 C10.4682345,0.141406844 9.90560399,-0.4 9.2205069,-0.4 Z M1.2794931,0.4 L9.2205069,0.4 C9.47573915,0.4 9.68534658,0.601700589 9.69515595,0.856744267 L10.0653483,10.4817443 C10.0743104,10.7147589 9.91385687,10.9150146 9.69397958,10.9637203 L9.5906992,10.975 L0.909300796,10.975 C0.64696554,10.975 0.434300796,10.7623353 0.434300796,10.5 L0.804844046,0.856744267 C0.814653418,0.601700589 1.02426085,0.4 1.2794931,0.4 Z"
                                                    id="矩形"></path>
                                                <path
                                                    d="M3.9,2.625 C3.9,3.4317645 4.41064859,3.975 5.25,3.975 C6.0399778,3.975 6.53878632,3.49379485 6.59473618,2.76457768 L6.6,2.625 L7.4,2.625 C7.4,3.86290793 6.54262133,4.775 5.25,4.775 C4.0135796,4.775 3.17537743,3.9404961 3.10482757,2.78457034 L3.1,2.625 L3.9,2.625 Z"
                                                    id="路径"></path>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">商品</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/卡券管理</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-7备份">
                                            <rect id="矩形备份-32" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-30" transform="translate(0.875000, 2.187500)" fill="#303133"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M11.375,0 C11.8582492,0 12.25,0.391750844 12.25,0.875 L12.25,3.5 C11.5251263,3.5 10.9375,4.08762627 10.9375,4.8125 C10.9375,5.53737373 11.5251263,6.125 12.25,6.125 L12.25,8.75 C12.25,9.23324916 11.8582492,9.625 11.375,9.625 L0.875,9.625 C0.391750844,9.625 0,9.23324916 0,8.75 L0,6.125 C0.724873734,6.125 1.3125,5.53737373 1.3125,4.8125 C1.3125,4.08762627 0.724873734,3.5 0,3.5 L0,0.875 C0,0.391750844 0.391750844,0 0.875,0 L11.375,0 Z M11.375,0.8 L0.875,0.8 C0.843933983,0.8 0.817279491,0.818887987 0.805893872,0.845806615 L0.8,0.875 L0.8,2.858 L0.855102439,2.88022405 C1.55222696,3.18918322 2.05093638,3.86433144 2.10719588,4.66163388 L2.1125,4.8125 C2.1125,5.67484461 1.59579725,6.41650683 0.855102439,6.74477595 L0.8,6.766 L0.8,8.75 C0.8,8.78106602 0.818887987,8.80772051 0.845806615,8.81910613 L0.875,8.825 L11.375,8.825 C11.406066,8.825 11.4327205,8.80611201 11.4441061,8.77919338 L11.45,8.75 L11.45,6.767 L11.3948976,6.74477595 C10.697773,6.43581678 10.1990636,5.76066856 10.1428041,4.96336612 L10.1375,4.8125 C10.1375,3.95015539 10.6542028,3.20849317 11.3948976,2.88022405 L11.45,2.857 L11.45,0.875 C11.45,0.843933983 11.431112,0.817279491 11.4041934,0.805893872 L11.375,0.8 Z"
                                                    id="形状结合"></path>
                                                <polygon id="直线-3"
                                                    points="5.65 2.6625 5.65 6.9625 4.85 6.9625 4.85 2.6625"></polygon>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">卡券管理</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/会员管理</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-8备份">
                                            <rect id="矩形备份-33" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-31" transform="translate(0.875000, 0.875000)" fill="#303133"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M4.25689195,7.725 L6.125,9.3817135 L8.02598967,7.72936438 C10.4038143,8.04872897 12.1419888,9.10034926 12.2451492,11.6612245 L12.25,11.905752 L12.041539,12.1256669 C11.8763058,12.2999789 11.655883,12.4095046 11.4198181,12.4372402 L11.3006651,12.4442135 L0.950953479,12.4442135 C0.711939508,12.4442135 0.481842628,12.360407 0.299684062,12.2094829 L0.212780293,12.128505 L0,11.905752 C0,9.15456312 1.7877343,8.04884803 4.25689195,7.725 Z M4.006,8.571 L3.87927386,8.59365051 C1.9475407,8.94977434 0.953110151,9.83460189 0.816386466,11.4928083 L0.810083702,11.5934535 C0.836434584,11.6152861 0.86736731,11.6305685 0.900322875,11.638331 L0.950953479,11.6442135 L11.2539261,11.64558 L11.3264668,11.6427054 C11.3606165,11.6386931 11.3931721,11.6267689 11.4216315,11.6081353 L11.439,11.593 L11.4334969,11.4922598 C11.2972019,9.84635791 10.3149688,8.95922911 8.3976532,8.59876357 L8.27,8.576 L6.649819,9.9855057 C6.37688201,10.2227438 5.9836804,10.2446457 5.68861507,10.0522987 L5.59419423,9.98024942 L4.006,8.571 Z"
                                                    id="形状结合"></path>
                                                <path
                                                    d="M6.125,-0.4 C3.97108948,-0.4 2.225,1.34608948 2.225,3.5 C2.225,5.65391052 3.97108948,7.4 6.125,7.4 C8.27891052,7.4 10.025,5.65391052 10.025,3.5 C10.025,1.34608948 8.27891052,-0.4 6.125,-0.4 Z M6.125,0.4 C7.83708272,0.4 9.225,1.78791728 9.225,3.5 C9.225,5.21208272 7.83708272,6.6 6.125,6.6 C4.41291728,6.6 3.025,5.21208272 3.025,3.5 C3.025,1.78791728 4.41291728,0.4 6.125,0.4 Z"
                                                    id="椭圆形"></path>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">会员管理</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/营销中心</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-9备份">
                                            <rect id="矩形备份-34" x="0" y="0" width="14" height="14"></rect>
                                            <path
                                                d="M12.224249,2.22042121 C12.2413527,2.28935444 12.25,2.36011369 12.25,2.43113712 L12.25,11.5688629 C12.25,12.014939 11.9162005,12.3830521 11.4847581,12.4370454 L11.375,12.4438629 C11.3039766,12.4438629 11.2332173,12.4352156 11.1642841,12.4181118 L4.8125,10.8419313 L4.8125,3.15793132 L11.1642841,1.58188816 L11.2724539,1.56207326 L11.3798268,1.55594125 C11.7708528,1.55781118 12.1257777,1.823552 12.224249,2.22042121 Z M11.386694,2.35703403 L11.3569428,2.35834331 L5.612,3.783 L5.612,10.216 L11.3659021,11.643309 L11.375,11.6438629 C11.406066,11.6438629 11.4327205,11.6249749 11.4441061,11.5980563 L11.45,11.5688629 L11.4494461,2.42203926 C11.4428053,2.39297459 11.4301423,2.37679799 11.4137015,2.36689342 L11.386694,2.35703403 Z M3.9375,3.375 L3.9375,10.625 L1.8125,10.625 C1.32925084,10.625 0.9375,10.2332492 0.9375,9.75 L0.9375,4.25 C0.9375,3.76675084 1.32925084,3.375 1.8125,3.375 L3.9375,3.375 Z M3.137,4.175 L1.8125,4.175 C1.78143398,4.175 1.75477949,4.19388799 1.74339387,4.22080662 L1.7375,4.25 L1.7375,9.75 C1.7375,9.78106602 1.75638799,9.80772051 1.78330662,9.81910613 L1.8125,9.825 L3.137,9.825 L3.137,4.175 Z"
                                                id="形状结合" fill="#303133" fill-rule="nonzero"></path>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">营销中心</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px nav-current">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/进销存</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-27备份">
                                            <rect id="矩形备份-37" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-32" transform="translate(0.875000, 2.187500)" fill="#ff9a00"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M5.31024219,0 C5.53110218,0 5.74379214,0.0835212752 5.9056369,0.233805695 L8.00961538,2.1875 L11.375,2.1875 C11.8582492,2.1875 12.25,2.57925084 12.25,3.0625 L12.25,9.1875 C12.25,9.67074916 11.8582492,10.0625 11.375,10.0625 L0.875,10.0625 C0.391750844,10.0625 0,9.67074916 0,9.1875 L0,0.875 C0,0.391750844 0.391750844,0 0.875,0 L5.31024219,0 Z M5.31024219,0.8 L0.875,0.8 C0.843933983,0.8 0.817279491,0.818887987 0.805893872,0.845806615 L0.8,0.875 L0.8,9.1875 C0.8,9.21856602 0.818887987,9.24522051 0.845806615,9.25660613 L0.875,9.2625 L11.375,9.2625 C11.406066,9.2625 11.4327205,9.24361201 11.4441061,9.21669338 L11.45,9.1875 L11.45,3.0625 C11.45,3.03143398 11.431112,3.00477949 11.4041934,2.99339387 L11.375,2.9875 L7.69546319,2.9875 L5.36127602,0.820040488 L5.33765602,0.805189673 L5.31024219,0.8 Z"
                                                    id="矩形"></path>
                                                <polygon id="直线"
                                                    points="8.275 7.4125 8.275 8.2125 3.975 8.2125 3.975 7.4125">
                                                </polygon>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">进销存</div>
                        </div>
                        <div class="nav-seperate"></div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/POS收银</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-11备份">
                                            <rect id="矩形备份-35" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-14" transform="translate(0.875000, 1.750000)" fill="#303133"
                                                fill-rule="nonzero">
                                                <g id="编组-33">
                                                    <path
                                                        d="M11.375,0 C11.8582492,0 12.25,0.391750844 12.25,0.875 L12.25,9.625 C12.25,10.1082492 11.8582492,10.5 11.375,10.5 L0.875,10.5 C0.391750844,10.5 0,10.1082492 0,9.625 L0,0.875 C0,0.391750844 0.391750844,0 0.875,0 L11.375,0 Z M11.375,0.8 L0.875,0.8 C0.843933983,0.8 0.817279491,0.818887987 0.805893872,0.845806615 L0.8,0.875 L0.8,9.625 C0.8,9.65606602 0.818887987,9.68272051 0.845806615,9.69410613 L0.875,9.7 L11.375,9.7 C11.406066,9.7 11.4327205,9.68111201 11.4441061,9.65419338 L11.45,9.625 L11.45,0.875 C11.45,0.843933983 11.431112,0.817279491 11.4041934,0.805893872 L11.375,0.8 Z"
                                                        id="矩形"></path>
                                                    <polygon id="直线-4"
                                                        points="3.025 3.5375 3.025 6.9625 2.225 6.9625 2.225 3.5375">
                                                    </polygon>
                                                </g>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">POS收银</div>
                        </div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/小程序</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-26备份">
                                            <rect id="矩形备份-36" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-34" transform="translate(1.750000, 0.875000)" fill="#303133">
                                                <path
                                                    d="M9.625,0 C10.1082492,0 10.5,0.391750844 10.5,0.875 L10.5,11.375 C10.5,11.8582492 10.1082492,12.25 9.625,12.25 L0.875,12.25 C0.391750844,12.25 0,11.8582492 0,11.375 L0,0.875 C0,0.391750844 0.391750844,0 0.875,0 L9.625,0 Z M9.625,0.8 L0.875,0.8 C0.843933983,0.8 0.817279491,0.818887987 0.805893872,0.845806615 L0.8,0.875 L0.8,11.375 C0.8,11.406066 0.818887987,11.4327205 0.845806615,11.4441061 L0.875,11.45 L9.625,11.45 C9.65606602,11.45 9.68272051,11.431112 9.69410613,11.4041934 L9.7,11.375 L9.7,0.875 C9.7,0.843933983 9.68111201,0.817279491 9.65419338,0.805893872 L9.625,0.8 Z"
                                                    id="矩形" fill-rule="nonzero"></path>
                                                <polygon id="直线-15" fill-rule="nonzero"
                                                    points="7.4 2.225 7.4 3.025 3.1 3.025 3.1 2.225"></polygon>
                                                <circle id="椭圆形" cx="5.25" cy="10" r="1"></circle>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">小程序</div>
                        </div>
                        <div class="nav-seperate"></div>
                        <div class="d-flex align-items-center el-menu-item h-60px ">
                            <div class="mr-10 d-flex align-items-center">
                                <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1"
                                    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                                    <title>导航栏/配置管理</title>
                                    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                        <g id="编组-28备份">
                                            <rect id="矩形备份-38" x="0" y="0" width="14" height="14"></rect>
                                            <g id="编组-36" transform="translate(1.312500, 0.875000)" fill="#303133"
                                                fill-rule="nonzero">
                                                <path
                                                    d="M5.06117986,0.162154867 C5.4066358,-0.0301046096 5.82446791,-0.0513946682 6.18594425,0.0982602285 L6.31860478,0.162393812 L10.7546496,2.63348063 C11.0960801,2.82367357 11.3206764,3.15532295 11.3663716,3.52517726 L11.375,3.66546181 L11.375,8.59834352 C11.375,8.97705844 11.1874351,9.3302837 10.8749403,9.554116 L10.7520209,9.63178489 L6.31597676,12.0890664 C5.97178362,12.2797271 5.55614164,12.3009832 5.19600853,12.1528104 L5.06380855,12.0893037 L0.623407632,9.63185617 C0.280444191,9.44205019 0.0546245408,9.10971243 0.00867651288,8.73885255 L0,8.59817751 L0,3.66562805 C0,3.28768511 0.186807365,2.93507182 0.498262455,2.711146 L0.620779571,2.63340792 L5.06117986,0.162154867 Z M5.92929401,0.861276582 C5.81200441,0.795940727 5.6696274,0.782850958 5.54228243,0.822016585 L5.45021907,0.861188837 L1.00981878,3.33244189 C0.903182531,3.39178905 0.832880261,3.48509319 0.809024803,3.58750232 L0.8,3.66562805 L0.8,8.59817751 C0.8,8.70385602 0.849227416,8.80661621 0.937457924,8.88142493 L1.01078413,8.93189942 L5.45118505,11.3893469 C5.56813271,11.4540692 5.70980344,11.4669912 5.83662015,11.4281222 L5.92832916,11.3892597 L10.3643733,8.93197825 C10.4713919,8.87269689 10.5419818,8.77924706 10.5659371,8.67663231 L10.575,8.59834352 L10.575,3.66546181 C10.575,3.56009756 10.5260662,3.45762103 10.4382932,3.38285467 L10.3653388,3.3323634 L5.92929401,0.861276582 Z"
                                                    id="路径"
                                                    transform="translate(5.687500, 6.125000) scale(1, -1) translate(-5.687500, -6.125000) ">
                                                </path>
                                                <path
                                                    d="M5.6875,3.975 C4.50008779,3.975 3.5375,4.93758779 3.5375,6.125 C3.5375,7.31241221 4.50008779,8.275 5.6875,8.275 C6.87491221,8.275 7.8375,7.31241221 7.8375,6.125 C7.8375,4.93758779 6.87491221,3.975 5.6875,3.975 Z M5.6875,4.775 C6.43308441,4.775 7.0375,5.37941559 7.0375,6.125 C7.0375,6.87058441 6.43308441,7.475 5.6875,7.475 C4.94191559,7.475 4.3375,6.87058441 4.3375,6.125 C4.3375,5.37941559 4.94191559,4.775 5.6875,4.775 Z"
                                                    id="椭圆形"></path>
                                            </g>
                                        </g>
                                    </g>
                                </svg>
                            </div>
                            <div class="d-flex align-items-center main-color ">配置管理</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="iframe-content" id="erp-container">
                <iframe id="new_iframe" width="100%" height="100%"
                    src="https://test-erpconsole.51hchc.com/dashboard/?hq_id=199&amp;account_id=902&amp;token=e1719df5a6fdeb5d2e89b17cecca8446"></iframe>
            </div>
        </div>
    </div>
    <div id="old" style="display: none;">
        <div id="header">
            <div class="title"><img src="./header.gif" alt=""> 预发布环境
                <div class="new-btn" onclick="openNew()">看新版</div>
                <div class="new-btn" onclick="openLogin()">切换账号</div>
                <div id="user1">总管理员</div>
            </div>
        </div>
        <div id="nav-left">
            <ul>
                <li class="left-btn"><a onclick="changePage('/flows/warehousing/submit-receipt/')">入库</a></li>
                <li class="left-btn"><a onclick="changePage('/flows/inventory/count-receipt/')">盘点</a></li>
                <li class="left-btn"><a onclick="changePage('/flows/inventory/loss-receipt/')">报废</a></li>
                <li class="left-btn"><a onclick="changePage('/reports/inventory/flow-item-list/')">库存流水</a></li>
                <li class="left-btn"><a onclick="changePage('/reports/inventory/stocktaking-report/')">盘存报表</a></li>
                <li class="left-btn"><a onclick="changePage('/flows/transfer/submit-receipt/')">调拨</a></li>
                <li class="left-btn"><a onclick="changePage('/flows/deliver/submit-receipt/')">出库</a></li>
                <li class="left-btn"><a onclick="changePage('/console/ordering/configuration/')">订货策略</a></li>
                <li class="left-btn"><a onclick="changePage('/flows/ordering/submit-receipt/')">订货管理</a></li>
                <li class="left-btn"><a onclick="changePage('/console/product-limit/')">商品限量</a></li>
                <li class="left-btn"><a onclick="changePage('/stat/repository/')">库存表</a></li>
                <li class="left-btn"><a onclick="changePage('/material/erp-items/')">订货信息</a></li>
                <li class="left-btn"><a onclick="changePage('/console/material-manage/')">原料管理</a></li>
                <li class="left-btn"><a onclick="changePage('/console/repository/')">仓库管理</a></li>
                <!-- <li class="left-btn"><a onclick="changePage('/console/supplier/')">供应商管理</a></li> -->
                <li class="left-btn"><a onclick="changePage1('/console/commodity-cost-popoup/')">商品成本卡</a></li>
            </ul>
        </div>
        <div id="container">
            <div id="erp-container">
                <iframe id="my_iframe" width="100%" height="100%" src=""></iframe>
            </div>
            <div id="decrypt">
                <div class="div_item">
                    <p>key值</p>
                    <input type="text" id="key">
                </div>
                <div>
                    <div class="div_item">
                        <p>明文密码</p>
                        <input type="text" id="jiaInp">
                        <p class="btn" id="jiaBtn" onclick="postFun(1)">加密</p>

                        <textarea placeholder="加密后的密码" id="jiaTer" readonly=""></textarea>
                    </div>
                    <div class="div_item">
                        <p>密文密码</p>
                        <input type="text" id="jieInp">
                        <p class="btn" id="jieBtn" onclick="postFun(0)">解密</p>
                        <textarea placeholder="解密后的密码" id="jieTer" readonly=""></textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="login">
        <div class="form">
            <div class="input-item">
                <p>账号</p>
                <input type="text" id="name">
            </div>
            <div class="input-item">
                <p>密码</p>
                <input type="password" id="pwd">
            </div>
            <div class="input-item">
                <p>品牌码</p>
                <input type="text" id="code">
            </div>
            <div class="btn-wrap">
                <div class="btn" id="jiaBtn" onclick="closeLogin()">取消</div>
                <div class="btn" id="jiaBtn" onclick="login()">确定</div>
            </div>
        </div>
    </div>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script>!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } "function" == typeof define && define.amd ? define(function () { return A }) : "object" == typeof module && module.exports ? module.exports = A : n.md5 = A }(this);
//# sourceMappingURL=md5.min.js.map</script>
    <script type="text/javascript">
        //   let oldDOM = document.querySelector('#old')
        // let newDOM = document.querySelector('#new')
        // let oldDOMP = document.querySelector('#old').parentNode
        // let newDOMP = document.querySelector('#new').parentNode
        // newDOMP.removeChild(newDOM)
        var token = "";
        var hq_id = "";
        var account_id = "";
        let my_iframe = document.getElementById('my_iframe');
        let limit_iframe = document.getElementById('limit_iframe');
        function changePage(url) {
            my_iframe.src = "https://test-erpconsole.51hchc.com" + url + '?hq_id=' + hq_id + '&account_id=' + account_id + '&is_old=true&token=' + token;
            document.getElementById('decrypt').style.display = 'none';
        }
        function changePage1(url) {
            let str_plus = '&product_id=433387&product_name=零度可乐'
            if (hq_id == 3171) {
                str_plus = '&product_id=1441281&product_name=测试餐饮商品'
            }
            my_iframe.src = "https://test-erpconsole.51hchc.com" + url + '?hq_id=' + hq_id + '&account_id=' + account_id + '&token=' + token + '&is_old=true' + str_plus;
            document.getElementById('decrypt').style.display = 'none';

        }
        function openNew() {
            document.getElementById('old').style.display = 'none';
            document.getElementById('new').style.display = 'block';
            // oldDOM.remove()
            // newDOMP.appendChild(newDOM)
            document.getElementById('new_iframe').src = 'https://test-erpconsole.51hchc.com/dashboard/?hq_id=' + hq_id + '&account_id=' + account_id + '&token=' + token;//'https://test-erpconsole.51hchc.com/dashboard?hq_id=199&account_id=902&token='+token;
        }
        function openOld() {
            document.getElementById('old').style.display = 'block';
            document.getElementById('new').style.display = 'none';
            // newDOM.remove()
            // oldDOMP.appendChild(oldDOM)
        }
        // window.addEventListener("message", function( event ) {
        //    // 可以用 event.origin 属性判断那个页面传上来的消息,event.origin等于传来消息的iframe的url

        //    try {
        //           let findFun = new Function(event.data) ;
        //     findFun()
        //        } catch (error) {

        //        }

        // });
        function openDecrypt() {
            document.getElementById('decrypt').style.display = 'block';
        }
        function postFun(isEncryption) {
            isEncryption = isEncryption == 1 ? true : false;
            let key = document.getElementById("key").value
            if (!key) {
                alert("请输入Key值");
                return
            }
            let obj = {
                password: "",
                key: key,
                isEncryption: isEncryption
            }
            if (isEncryption) {
                obj.password = document.getElementById("jiaInp").value
            } else {
                obj.password = document.getElementById("jieInp").value
            }

            if (!obj.password) {
                alert("请输入密码");
                return
            }

            $.ajax({
                //请求方式
                type: "POST",
                //请求的媒体类型
                contentType: "application/json;charset=UTF-8",
                //请求地址
                url: "https://erp.flip.fun/statement-m/password/encryptionAndDecryption",
                //数据，json字符串
                data: JSON.stringify(obj),
                //请求成功
                success: function (data) {
                    if (data.response.code == 0) {
                        if (isEncryption) {//true：加密
                            document.getElementById("jiaTer").value = data.response.one;
                        } else {
                            document.getElementById("jieTer").value = data.response.one;
                        }
                    } else {
                        alert(data.response.msg);
                    }
                },
                //请求失败，包含具体的错误信息
                error: function (e) {

                    alert(e.responseJSON.response.msg);
                }
            });
        }
        var storage = window.localStorage;
        function checkStorage() {
            if (storage.yfb_data) {
                let yfb_data = JSON.parse(storage.yfb_data);
                account_id = yfb_data.body.accountId;
                hq_id = yfb_data.body.hqId;
                token = yfb_data.token;
                document.getElementById('user').innerHTML = yfb_data.body.fullname;
                document.getElementById('user1').innerHTML = yfb_data.body.fullname;
                document.getElementById('new_iframe').src = 'https://test-erpconsole.51hchc.com/dashboard/?hq_id=' + hq_id + '&account_id=' + account_id + '&token=' + token;
            } else {
                openLogin()
            }
        }
        checkStorage()
        function login() {
            let _data = {
                credentialId: $('#name').val().trim(), password: md5($('#pwd').val().trim()), hqCode: $('#code').val().trim().replace('\'', '\\\'')
            }
            console.log(_data)
            $.ajax({
                type: "POST",
                url: "https://auth.51hchc.com/auth",
                data: JSON.stringify(_data),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    console.log(data);
                    if (data.code != '0') {
                        alert('登录失败');
                    } else {
                        let yfb_data = data.data;
                        account_id = yfb_data.body.accountId;
                        hq_id = yfb_data.body.hqId;
                        token = yfb_data.token;
                        storage.yfb_data = JSON.stringify(yfb_data);
                        document.getElementById('user').innerHTML = yfb_data.body.fullname;
                        document.getElementById('user1').innerHTML = yfb_data.body.fullname;
                        closeLogin()
                        // location.replace(location.href)   
                        // document.querySelector('#new_iframe').style.display = 'none';
                        // document.querySelector('.erp-container').innerHTML = `<iframe id="new_iframe" width="100%" height="100%" bgc src=${'https://test-erpconsole.51hchc.com/?hq_id='+hq_id+'&account_id='+account_id+'&is_old=true&token='+token}></iframe>`
                        // console.log( document.querySelector( '.iframe-content'));
                        // setTimeout(function() {new Promise(resolve => {resolve()}).then(() =>{
                        //     document.getElementById('new_iframe').style.display = 'block';
                        // })})
                        // document.getElementById('my_iframe').src ='https://test-erpconsole.51hchc.com/?hq_id='+hq_id+'&account_id='+account_id+'&is_old=true&token='+token;
                        document.getElementById('new_iframe').src = ''
                       
                        setTimeout(() => {
                            document.getElementById('new_iframe').style.position = 'relative';
                            document.getElementById('new_iframe').style.left = '0';
                            document.getElementById('new_iframe').src = 'https://test-erpconsole.51hchc.com/dashboard/?hq_id=' + hq_id + '&account_id=' + account_id + '&token=' + token;
                        }, 1000)
                        // document.getElementById('new_iframe').location.reload()
                    }
                },
                failure: function (errMsg) {
                    console.log('错误', errMsg);
                }
            });
        }
        function makeDz() {
            account_id = '1117';
        }
        function makeDy() {
            account_id = '1477';
        }
        function openLogin() {
            document.getElementById('login').style.display = 'block';
        }
        function closeLogin() {
            document.getElementById('login').style.display = 'none';
        }
    </script>

</body>

</html>